import Vue from 'vue'
import VueRouter from 'vue-router'
import Chat from '../views/Chat.vue'
import NoteBook from '../views/NoteBook.vue'
Vue.use(VueRouter)

const routes = [
  {
  
    path: '/',
    name: 'Note',
    component: NoteBook,
    meta: {
      title: 'note',
      keepAlive: true
    }
  },
  {
  
    path: '/chat',
    name: 'Chat',
    component: Chat,
    meta: {
      title: 'chat',
      keepAlive: false
    }
  },

   
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
